package com.lyn.p1;

import java.util.Arrays;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="myBook")
public class Book {
	private String[] tech;

	public String[] getTech() {
		return tech;
	}
	
	//setter必须有
	public void setTech(String[] tech) {
		this.tech = tech;
	}

	@Override
	public String toString() {
		return "Book [tech=" + Arrays.toString(tech) + "]";
	}
	
	
}
